package com.example.campus.dao.model.shiro;


import com.example.campus.common.BusinessConstants;
import com.example.campus.common.ValidationMessageConstants;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.Set;

@NoArgsConstructor
@AllArgsConstructor
@Data
public class User {
    @NotNull(message = "id" + ValidationMessageConstants.SHOULD_NOT_BE_NULL)
    Long id;
    String loginName;
    String password;
    String gender;
    @DateTimeFormat(pattern = BusinessConstants.TIME_FORMAT)
    Date birthday;
    String phone;
    String email;
    String status;
    Set<Role> roles;
}
